package com.ruoyi.huoyun.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.business.mapper.SupplyOfCarsInfoMapper;
import com.ruoyi.huoyun.business.domain.SupplyOfCarsInfo;
import com.ruoyi.huoyun.business.service.ISupplyOfCarsInfoService;

/**
 * 车源信息Service业务层处理
 * 
 * @author mj
 * @date 2021-11-28
 */
@Service
public class SupplyOfCarsInfoServiceImpl implements ISupplyOfCarsInfoService 
{
    @Autowired
    private SupplyOfCarsInfoMapper supplyOfCarsInfoMapper;

    /**
     * 查询车源信息
     * 
     * @param id 车源信息主键
     * @return 车源信息
     */
    @Override
    public SupplyOfCarsInfo selectSupplyOfCarsInfoById(Integer id)
    {
        return supplyOfCarsInfoMapper.selectSupplyOfCarsInfoById(id);
    }

    /**
     * 查询车源信息列表
     * 
     * @param supplyOfCarsInfo 车源信息
     * @return 车源信息
     */
    @Override
    public List<SupplyOfCarsInfo> selectSupplyOfCarsInfoList(SupplyOfCarsInfo supplyOfCarsInfo)
    {
        return supplyOfCarsInfoMapper.selectSupplyOfCarsInfoList(supplyOfCarsInfo);
    }

    /**
     * 新增车源信息
     * 
     * @param supplyOfCarsInfo 车源信息
     * @return 结果
     */
    @Override
    public int insertSupplyOfCarsInfo(SupplyOfCarsInfo supplyOfCarsInfo)
    {
        return supplyOfCarsInfoMapper.insertSupplyOfCarsInfo(supplyOfCarsInfo);
    }

    /**
     * 修改车源信息
     * 
     * @param supplyOfCarsInfo 车源信息
     * @return 结果
     */
    @Override
    public int updateSupplyOfCarsInfo(SupplyOfCarsInfo supplyOfCarsInfo)
    {
        return supplyOfCarsInfoMapper.updateSupplyOfCarsInfo(supplyOfCarsInfo);
    }

    /**
     * 批量删除车源信息
     * 
     * @param ids 需要删除的车源信息主键
     * @return 结果
     */
    @Override
    public int deleteSupplyOfCarsInfoByIds(Integer[] ids)
    {
        return supplyOfCarsInfoMapper.deleteSupplyOfCarsInfoByIds(ids);
    }

    /**
     * 删除车源信息信息
     * 
     * @param id 车源信息主键
     * @return 结果
     */
    @Override
    public int deleteSupplyOfCarsInfoById(Integer id)
    {
        return supplyOfCarsInfoMapper.deleteSupplyOfCarsInfoById(id);
    }
}
